home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d18
/
nrpas13.arc
/
GAMMP.DEM
< prev
next >
Wrap
Text File
|
1991-05-01
|
615b
|
30 lines
PROGRAM d6r6(input,output,dfile);
(* driver for routine GAMMP *)
VAR
a,val,x : real;
i,nval : integer;
txt : string[25];
dfile : text;
(*$I MODFILE.PAS *)
(*$I GAMMLN.PAS *)
(*$I GCF.PAS *)
(*$I GSER.PAS *)
(*$I GAMMP.PAS *)
BEGIN
glopen(dfile,'fncval.dat');
REPEAT readln(dfile,txt) UNTIL (txt = 'Incomplete Gamma Function');
readln(dfile,nval);
writeln(txt);
writeln('a':4,'x':11,'actual':14,'gammp(a,x)':14);
FOR i := 1 to nval DO BEGIN
readln(dfile,a,x,val);
writeln(a:6:2,x:12:6,val:12:6,gammp(a,x):12:6)
END;
close(dfile)
END.